This resource address deletes the named server
(name) from the named package (pkgname).
URL Parameters
group-id={group-id}
The name or ID of the group from which to delete the named server. This parameter
is required. (The group named in the payload body is ignored.)
modules
Whether or not the modules associated with the server are to be deleted along with
the server configuration to
the package. Set to true to delete the server modules, or
false keep the modules.
Required Privileges
This operation requires the manage-admin role, or the
following privilege:
http://marklogic.com/xdmp/privileges/manage
Example
curl -X DELETE --digest -u admin:admin -H "Content-type: application/xml" \
"http://localhost:8002/manage/v2/packages/test-package/servers/Oscars"
==> Deletes the 'Oscars' server from the "test-package" package.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.